.class Lcom/wmr/order/RefundActivity$3;
.super Ljava/lang/Thread;
.source "RefundActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/wmr/order/RefundActivity;->order_update()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/wmr/order/RefundActivity;


# direct methods
.method constructor <init>(Lcom/wmr/order/RefundActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    .line 295
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 14

    .prologue
    const/4 v13, 0x2

    .line 297
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 299
    new-instance v4, Landroid/os/Message;

    invoke-direct {v4}, Landroid/os/Message;-><init>()V

    .line 300
    .local v4, "msg":Landroid/os/Message;
    iget-object v10, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    .line 301
    const-string v11, "userInfo"

    const/4 v12, 0x0

    .line 300
    invoke-virtual {v10, v11, v12}, Lcom/wmr/order/RefundActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 302
    .local v5, "preferences":Landroid/content/SharedPreferences;
    const-string v10, "uid"

    const-string v11, ""

    invoke-interface {v5, v10, v11}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 303
    .local v8, "uid":Ljava/lang/String;
    const-string v10, "pass"

    const-string v11, ""

    invoke-interface {v5, v10, v11}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 304
    .local v6, "pwd":Ljava/lang/String;
    iget-object v10, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    const v11, 0x7f0c0129

    invoke-virtual {v10, v11}, Lcom/wmr/order/RefundActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/EditText;

    .line 305
    .local v1, "contentback":Landroid/widget/EditText;
    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-interface {v10}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v10

    .line 306
    const-string v11, "%"

    const-string v12, ""

    invoke-virtual {v10, v11, v12}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    const-string v11, " "

    const-string v12, ""

    invoke-virtual {v10, v11, v12}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    .line 311
    .local v0, "content":Ljava/lang/String;
    new-instance v10, Ljava/lang/StringBuilder;

    iget-object v11, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->m:Lmyapp/MyApp;
    invoke-static {v11}, Lcom/wmr/order/RefundActivity;->access$6(Lcom/wmr/order/RefundActivity;)Lmyapp/MyApp;

    move-result-object v11

    invoke-virtual {v11}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 312
    const-string v11, "/index.php?ctrl=app&action=newordercontrol&doname=reback&orderid="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->orderid:Ljava/lang/String;
    invoke-static {v11}, Lcom/wmr/order/RefundActivity;->access$8(Lcom/wmr/order/RefundActivity;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&uid="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    .line 313
    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&pwd="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&datatype=json"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&content="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    const-string v11, "&reason="

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->reason:Ljava/lang/String;
    invoke-static {v11}, Lcom/wmr/order/RefundActivity;->access$9(Lcom/wmr/order/RefundActivity;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    .line 311
    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    .line 315
    .local v9, "url":Ljava/lang/String;
    const-string v10, "OrderdetACtivity"

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "sureorder() \u9000\u6b3e\u7533\u8bf7 \u5b9a\u5355"

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 316
    iget-object v10, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->m:Lmyapp/MyApp;
    invoke-static {v10}, Lcom/wmr/order/RefundActivity;->access$6(Lcom/wmr/order/RefundActivity;)Lmyapp/MyApp;

    move-result-object v10

    invoke-static {v9, v10}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v7

    .line 319
    .local v7, "str":Ljava/lang/String;
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 321
    .local v3, "json":Lorg/json/JSONObject;
    const-string v10, "error"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    const-string v11, "true"

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_0

    .line 323
    const-string v10, "msg"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    iput-object v10, v4, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 324
    const/4 v10, 0x1

    iput v10, v4, Landroid/os/Message;->arg1:I

    .line 325
    iget-object v10, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    iget-object v10, v10, Lcom/wmr/order/RefundActivity;->h:Landroid/os/Handler;

    invoke-virtual {v10, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 346
    .end local v3    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 328
    .restart local v3    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v10, "msg"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v10

    if-eqz v10, :cond_1

    .line 330
    const/4 v10, 0x2

    iput v10, v4, Landroid/os/Message;->arg1:I

    .line 331
    iget-object v10, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    iget-object v10, v10, Lcom/wmr/order/RefundActivity;->h:Landroid/os/Handler;

    invoke-virtual {v10, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 338
    .end local v3    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v2

    .line 340
    .local v2, "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    .line 341
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 343
    iput v13, v4, Landroid/os/Message;->arg1:I

    .line 344
    iget-object v10, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    iget-object v10, v10, Lcom/wmr/order/RefundActivity;->h:Landroid/os/Handler;

    invoke-virtual {v10, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 334
    .end local v2    # "e":Lorg/json/JSONException;
    .restart local v3    # "json":Lorg/json/JSONObject;
    :cond_1
    const/4 v10, 0x5

    :try_start_1
    iput v10, v4, Landroid/os/Message;->arg1:I

    .line 335
    iget-object v10, p0, Lcom/wmr/order/RefundActivity$3;->this$0:Lcom/wmr/order/RefundActivity;

    iget-object v10, v10, Lcom/wmr/order/RefundActivity;->h:Landroid/os/Handler;

    invoke-virtual {v10, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 349
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 350
    monitor-exit p0

    return-void

    .line 349
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
